<MDXHeader
  title="Avatar"
  description="An image element with a fallback for representing the user."
/>

<ComponentPreview name="avatar-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add avatar
```

</TabsContent>

<TabsContent value="manual">
<Steps>

<Step>Install the following dependencies: </Step>

```bash
npm install @kobalte/core
```

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="avatar" />

</Steps>
</TabsContent>

</Tabs>

## Usage

```tsx
import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar"
```

```tsx
<Avatar>
  <AvatarImage src="https://github.com/stefan-karger.png" />
  <AvatarFallback>EK</AvatarFallback>
</Avatar>
```
